<%--
  Created by IntelliJ IDEA.
  User: xiao
  Date: 2020/11/30
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>qqqq</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/js/jquery-3.5.1.js"> </script>
    <script src="${pageContext.request.contextPath}/js/bootstrap.js"> </script>
    <script src="../layui/layui.js"></script>

    <style>

        .header{
            background: url('../img/top.jpg');
            background-size: 1500px;
            height: 70px;
        }

    </style>
</head>

<body class="layui-layout-body ">
<div class="layui-layout layui-layout-admin ">
    <div class="layui-header">
        <div class="layui-logo">学生借书页面</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">


            <li class="layui-nav-item"><a href="">功能待开发</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">功能待开发</a>
                <dl class="layui-nav-child">
                    <dd><a href="">功能待开发</a></dd>
                    <dd><a href="">功能待开发</a></dd>
                    <dd><a href="">功能待开发</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    ${user.sname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="${pageContext.request.contextPath}/jsp/stu_data.jsp">基本资料设置</a></dd>

                </dl>
            </li>
            <li class="layui-nav-item"><a href="${pageContext.request.contextPath}/jsp/index.jsp">退出登录</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">借书</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${pageContext.request.contextPath}/book/findAll?page=1&size=4">书籍列表</a></dd>
<%--                        <dd><a href="${pageContext.request.contextPath}/book/borrow-list">借阅记录</a></dd>--%>
                      <%--  <dd><a href="javascript:;">列表三</a></dd>
                        <dd><a href="">超链接</a></dd>--%>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">还书</a>
                    <dl class="layui-nav-child">
                        <dd><a href="${pageContext.request.contextPath}/appointment/Appoint-list">预约记录</a></dd>
                        <dd><a href="${pageContext.request.contextPath}/book/borrow-list">借阅记录</a></dd>

                        <%--<dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>--%>
                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">

            <iframe src="${pageContext.request.contextPath}/book/findAll?page=1&size=4" id="main" width="100%" style="height: 2000px" frameborder="0"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script src="../src/layui.js"></script>
<script>

    layui.use(['element','jquery'], function(){
        var $=layui.jquery;
        var element = layui.element;
        $(document).ready(function(){
            $("dd>a").click(function (e) {
                e.preventDefault();
                $("#main").attr("src",$(this).attr("href"));
            });
        });
        // $("#cloud").click(function(){$("#main").html("jaosgoaighowg");});
    });

</script>
</body>


</html>